package com.easyCms.base.entity;

import com.google.gson.annotations.Expose;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;

@MappedSuperclass
public class BaseEntity extends IdEntity {

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Expose
    @Column(name = "create_time")
    public Date createTime;
    @Expose
    public Integer state;
}